package ch.fusun.baron.coatofarms.ui.background;

import org.eclipse.swt.graphics.GC;

/**
 * A type of background for a coat of arms (for instance checker board)
 */
public interface COABackground {

	/**
	 * Draws the specific background on the coat of arms
	 * 
	 * @param gc
	 *            The gc to draw on
	 * @param x
	 *            position
	 * @param y
	 *            position
	 * @param width
	 *            The width of the image
	 * @param height
	 *            The height of the image
	 */
	void drawBackground(GC gc, int x, int y, int width, int height);

	/**
	 * @return a unique code
	 */
	String uniqueCode();

}
